package com.chinaums.fsp.sdk.request;

import org.xiajinsuo.avro.specific.SpecificRecordBase;

import com.chinaums.fsp.base.pgt.TransType;
import com.chinaums.fsp.sdk.base.ResponseDataWrapper;
import com.chinaums.fsp.sdk.pgt.params.OrgRoleModifyRequest;
import com.chinaums.fsp.sdk.pgt.params.OrganizationAddUnitEdbitCardRequest;
import com.chinaums.fsp.sdk.pgt.params.OrganizationAddUnitEdbitCardResponse;
import com.chinaums.fsp.sdk.pgt.params.OrganizationModifyRequest;

/**
 * 添加单位结算卡
 * 
 * @author hty
 */
public class OrganizatioAddUnitEdbitCardTest extends BaseRequest {

	/* 添加单位结算卡 */
	public void testOrgRoleModify() throws Exception {

		PgtRequestFactory rf = FACTORY.factory();

		OrganizationAddUnitEdbitCardRequest data = OrganizationAddUnitEdbitCardRequest.newBuilder()
				.setWalletNo("801000000001421")
				.setLegalName("1421")
				.setLegalIdcard("350583199401298311")
				.setUnitEdbitCard("6228400037093019960")
				.setBankCode("102")
//				.setCardAccNo("15000092705497")
//				.setSettleId("307584008056")
//				.setWalletNo("801000000000041")
//				.setBusinessContactIdcard("350583199401298311")
//				.setBusinessContactMobile("18559655830")
//				.setBusinessContactName("平安测试零零一五九二四零三一九五")
				.build();
		rf.transType(TransType.ORGANIZATION_ADD_UNIT_EDBIT_CARD.getTransCode())
			.responseClass(OrganizationAddUnitEdbitCardResponse.class).data(data);
		ResponseDataWrapper rdw = rf.post();

		this.print(rdw);
	}

}